<template>
	<view v-if="mainStore.token">
		<movable-area class="movableArea">
			<movable-view class="movableView" direction="all" :x="moveX" :y="moveY">
				<view
					class="home_jilu_box"
					:style="{ backgroundImage: `url(${staticImg('home_jilu.png')})` }"
					@click="toUrl('records')">
					<text class="Records">咨询记录</text>
				</view>
			</movable-view>
		</movable-area>
	</view>
</template>

<script setup>
	import { toUrl, Toast, staticImg, imgUrls } from '@/utils/utils.js';
	import { ref } from 'vue';
	import { useMainStore } from '@/stores/index';

	const mainStore = useMainStore();
	const moveX = ref(260);
	const moveY = ref(620);
	const newmoveX = ref(320);
	const newmoveY = ref(570);
</script>

<style lang="scss" scoped>
	.movableArea {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		pointer-events: none;
		z-index: 1000;
		box-sizing: border-box;
	}

	.movableView {
		width: 196rpx;
		height: 62rpx;
		pointer-events: auto;
		.home_jilu_box {
			width: 100%;
			height: 100%;
			background-repeat: no-repeat;
			background-size: cover;
			display: flex;
			align-items: center;
			justify-content: flex-end;
			padding-right: 32rpx;
		}
		.Records {
			color: #333;
			font-size: 24rpx;
		}
	}
</style>
